import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
  plugins: [vue()],
  resolve:{
    alias: {
      'vue': 'vue/dist/vue.esm-bundler.js', // 定义vue的别名，如果使用其他的插件，可能会用到别名
      "@": path.resolve(__dirname, "src"),
      'axios':'axios/dist/axios',
      'echarts-liquidfill':'echarts-liquidfill/dist/echarts-liquidfill.js',
      // 'element-plus':'element-plus/lib/index.js'
  },
  },
  css:{
    preprocessorOptions: {
       sass: {
        //  additionalData: `@import "@/styles/index.scss";`
       }
     }
  } 
 
})
